#START_RANK=$1
#END_RANK=$2
#sleep $((2 * TEST_ID))
RANK_SIZE=$1
NODE_NUM=$2
GAP=$((RANK_SIZE/NODE_NUM))
#for((i=$START_RANK;i<$END_RANK;i++))
for((i=$((TEST_ID*GAP));i<$(((TEST_ID+1)*GAP));i++))
do
    # sleep 0.05
    export RANK_ID=$i
    export RANK_SIZE=$RANK_SIZE
    echo "start process_$i"
    python read_meta.py \
    &> ./log/transform_$i.log & #2>&1 &
    # echo "transform log saved in $(realpath $PWD)/log/transform_$i.log"
done